package com.cloud.user_info.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.common.domain.Result;
import com.cloud.entity.SysUserAuth;
import com.cloud.entity.vo.AuthParam;

import java.util.List;

/**
 * 账户第三方授权
 *
 * @author yzj
 */
public interface ISysUserAuthService extends IService<SysUserAuth> {

    /**
     * 查询账户授权列表
     *
     * @param userAuth
     * @return
     */
    public List<SysUserAuth> selectUserAuthList(SysUserAuth userAuth);

    /**
     * 添加账户授权信息
     *
     * @param userAuth
     * @return
     */
    public Result insertUserAuth(SysUserAuth userAuth);

    /**
     * 修改账户授权信息
     *
     * @param userAuth
     * @return
     */
    public Result updateUserAuth(SysUserAuth userAuth);

    /**
     * 删除授权信息
     *
     * @param authIds
     * @return
     */
    public int deleteUserAuthById(List<Long> authIds);

    /**
     * 根据UserId查询授权列表
     *
     * @param userId
     * @return
     */
    public List<SysUserAuth> selectUserAuthById(Long userId);

    /**
     * 根据类型获取授权ID列表
     *
     * @param authParam
     * @return
     */
    public List<String> getUserAuthIds(AuthParam authParam);

}
